import qs from "qs";
//统一管理项目接口地址
import request from "@/request/request";
// 轮播图
export const BannersAPI = () => request.get("/index/banners/travel");
// 热门和最新
export const HotTravelsAPI = (params) => request.get('/travels/query/',{params});
// 热门地区
export const HotRegionAPI = () => request.get("/destinations/hotRegion");
// 查询地区内的目的地
export const SearchAPI = (params) => request.get('/destinations/search/',{params});
// 攻略列表数据
export const QueryAPI = (params) => request.get("/strategies/query",{params});
// 攻略主题
export const ThemesAPI = () => request.get("/strategies/themes");
// 攻略详情
export const DetailAPI = (params) => request.get("/strategies/detail",{params});
// 查询评论
export const CommentAPI = (params) => request.get('/strategies/comments', { params })
// 点击评论
export const AddCommentAPI = (params) => request.post('/strategies/addComment', qs.stringify(params))

// 校验手机号码是否注册
export const CheckPhoneAPI = (params) => request.get('/users/checkPhone',{params});
export const SendVerifyCodeAPI = (params) => request.post('/users/sendVerifyCode',qs.stringify(params));
// 用户登录
export const LoginAPI = (params) => request.post('users/login',qs.stringify(params));
// 用户注册
export const RegistAPI = (params) => request.post('/users/regist',qs.stringify(params));
